const showdown = require("showdown")

showdown.setOption("tables", true)
showdown.setOption("omitExtraWLInCodeBlocks", true)

const converter = new showdown.Converter()

// 转换markdown为HTML
function getHtml(text) {
    return converter.makeHtml(text)
}


module.exports = {
    getHtml
}